﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Communication
{
   public class TcpServerDatagramReceivedEventArgs<T>:EventArgs
    {
        /// <summary>
        /// 接收者名称
        /// </summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 发送者客户端
        /// </summary>
        public string ClientEndPoint { get; set; }
        /// <summary>
        /// 接收的信息
        /// </summary>
        public T Datagram { get; set; }
        /// <summary>
        /// 接收的信息
        /// </summary>
        public string DatagramStr { get; set; }
        public TcpServerDatagramReceivedEventArgs(string _name,string _client,string _dataStr, T _data)
        {
            ClientEndPoint = _client;
            Datagram = _data;
            DatagramStr = _dataStr;
            Name = _name;
        }
    }
}
